import random


def random_num(start, end):
    """
    随机小数
    """
    num = random.uniform(start, end)
    return round(num, 2)


if __name__ == '__main__':
    result = random_num(1, 2)
    print(result)
